﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PictrueSimpleSyndication
{
    public class SubscribeInfo
    {
        /// <summary>
        /// 标识
        /// </summary>
        public string Identification { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
    }

    /// <summary>
    /// 数据接口 获取全部的订阅
    /// </summary>
    public interface IDataSubscribeList
    {
        /// <summary>
        /// 获取全部的订阅信息
        /// </summary>
        /// <returns></returns>
        IEnumerable<SubscribeInfo> GetRootSubscribeInfo();

        /// <summary>
        /// 获取全部子集订阅
        /// </summary>
        /// <param name="identification"></param>
        /// <returns></returns>
        IEnumerable<SubscribeInfo> GetAllChildSubscribeInfo(string identification);

        /// <summary>
        /// 根据标识获取数据内容列表
        /// </summary>
        /// <param name="identification"></param>
        /// <returns></returns>
        IDataContentList GetDataContentList(string identification);
    }
}
